<?php

namespace App\ServicesNew;

use App\Entities\UserAddressEntity;

interface UserAddressService
{
    /**
     * @param int $userId
     * @param int $cityId
     * @return UserAddressEntity|null
     */
    public function getSuitableUserAddress(int $userId, int $cityId);

    /**
     * 获取最近使用的地址
     * @param int $userId
     * @param int $cityId
     * @return UserAddressEntity|null
     */
    public function getLastSetUserAddress(int $userId, int $cityId);

    /**
     * 获取默认地址
     * @param int $userId
     * @param int $cityId
     * @return UserAddressEntity|null
     */
    public function getDefaultUserAddress(int $userId, int $cityId);
}
